Equlibrium of a pinned beam